package com.handpay.zztong.hp.swiper.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import com.handpay.zztong.hp.SwiperCardKLFActivity.BackListener;
import com.handpay.zztong.hp.klf.SwiperCardView_KLF;

public class SwiperCardVoiceView extends LinearLayout{
	
	private SwiperCardView_KLF sw = null;

	public SwiperCardVoiceView(Context context, AttributeSet attrs) {
		super(context, attrs);
		sw = new SwiperCardView_KLF(context, attrs);
		SwiperCardVoiceView.this.addView(sw);
	}


	@Override
	public void setVisibility(int visibility) {
		if (sw != null) {
			sw.setVisibility(visibility);
		}
	}
	
	public void setIsSwiperOn(boolean isSwiperOn) {
		sw.setIsSwiperOn(isSwiperOn);
	}
	
	public void setBackListener(BackListener backListener) {
		sw.setBackListener(backListener);
	}
}
